package com.dl.mall.entity.admin;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author DL
 * @create 2022-01-17 13:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "Admin",description = "管理员实体类")
public class Admin implements Serializable {
    @ApiModelProperty(value = "用户id",required = true,example = "",notes = "")
    private String userId;
    @ApiModelProperty(value = "用户名",required = true,example = "",notes = "")
    private String username;
    @ApiModelProperty(value = "密码",required = true,example = "",notes = "")
    private String password;
    @ApiModelProperty(value = "状态",required = true,example = "",notes = "")
    private Integer state;
    @ApiModelProperty(value = "创建时间",required = true,example = "",notes = "")
    private Timestamp createTime;
    @ApiModelProperty(value = "更新时间",required = true,example = "",notes = "")
    private Timestamp updateTime;
    @ApiModelProperty(value = "姓名",required = true,example = "",notes = "")
    private String name;
    @ApiModelProperty(value = "电话",required = true,example = "",notes = "")
    private String phone;
    @ApiModelProperty(value = "电子邮箱",required = true,example = "",notes = "")
    private String email;
    @ApiModelProperty(value = "角色id",required = true,example = "",notes = "")
    private String roleId;
}
